API Documentation
Quaternion.h
1 // Quaternion.h
3 //
5 
6 namespace nkMaths
7 {
11  class DLL_GRAPHICS_EXPORT Quaternion : public Vector
12  {
13  public :
14 
27  Quaternion (float a, float b, float c, float w) ;
34  Quaternion (const Vector& axis, float angle) ;
40  Quaternion (const Vector& eulerAngles) ;
46  Quaternion (const Matrix& mat) ;
52  Quaternion (const Quaternion& other) ;
58  Quaternion (const DirectX::XMVECTOR& value) ;
63 
68 
75  void setFromAxisAngle (const Vector& axis, float angle) ;
81  void setFromEuler (const Vector& angles) ;
87  void setFromMatrix (const Matrix& mat) ;
88 
89  // Operators
95  Quaternion& operator= (const Quaternion& other) ;
102  Quaternion operator* (const Quaternion& other) const ;
108  void operator*= (const Quaternion& other) ;
109  } ;
110 }
nkMaths::Quaternion::~Quaternion
~Quaternion()
nkMaths::Quaternion::Quaternion
Quaternion(float a, float b, float c, float w)
nkMaths
Encompasses all API of component NilkinsMaths.
Definition: IVector.h:7
nkMaths::Quaternion
A quaternion, symbolizing rotations as a 4D vector.
Definition: Quaternion.h:12
nkMaths::Quaternion::setFromMatrix
void setFromMatrix(const Matrix &mat)
nkMaths::Quaternion::Quaternion
Quaternion(const Vector &axis, float angle)
nkMaths::Matrix
Represents a 4x4 float matrix.
Definition: Matrix.h:12
nkMaths::Quaternion::Quaternion
Quaternion(const DirectX::XMVECTOR &value)
nkMaths::Quaternion::Quaternion
Quaternion(const Vector &eulerAngles)
nkMaths::Quaternion::Quaternion
Quaternion(const Quaternion &other)
nkMaths::Quaternion::setFromAxisAngle
void setFromAxisAngle(const Vector &axis, float angle)
nkMaths::Quaternion::Quaternion
Quaternion(const Matrix &mat)
nkMaths::Quaternion::getAsEulerAngles
Vector getAsEulerAngles() const
nkMaths::Vector
A 4-component vector class, with floats.
Definition: Vector.h:12
nkMaths::Quaternion::Quaternion
Quaternion()
nkMaths::Quaternion::setFromEuler
void setFromEuler(const Vector &angles)